Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

no conflict on policy insert, add users allows [] array for consistency #545

Merged
merged 2 commits into from
May 22, 2018

Conversation

cianfoley-nearform
Copy link
Contributor

@mihaidma, this PR ignores conflicts on insert policy (note: if updates are performed on policy instances, we will throw the conflict error)

this PR also changed validation so that ids in team/user arrays can be empty for consistency to be like policies as per slack channel discussion, if there are entries it also enforces the id validation.

I'm not sure it makes sense to allow empty on PUT, we can add to all if necessary by putting min for each payload array...

@coveralls
Copy link

coveralls commented May 18, 2018

Coverage Status

Coverage decreased (-0.09%) to 93.141% when pulling f594a50 on no-conflict-on-insert-policy into f753865 on master.

@cianfoley-nearform cianfoley-nearform merged commit 765669c into master May 22, 2018
@cianfoley-nearform cianfoley-nearform deleted the no-conflict-on-insert-policy branch May 22, 2018 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants